package com.example.course.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 教师登录数据传输对象
 *
 * @author Jasmine-drs
 * @date 2025/4/23 12:00
 */
@Data
@ApiModel("教师登录信息")
public class TeacherLoginDTO {

	@NotBlank(message = "手机号不能为空")
	@Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
	@ApiModelProperty(value = "手机号", required = true, example = "13800138000")
	private String phone;

	@NotBlank(message = "密码不能为空")
	@ApiModelProperty(value = "密码", required = true, example = "password123")
	private String password;
} 